package com.example.foo.admin.web.ftt;

import java.math.BigDecimal;

import org.springframework.beans.BeanUtils;

import com.example.foo.ftt.model.FttProfit;

public class FttProfitVO extends FttProfit {

	private static final long serialVersionUID = 1L;

	private final BigDecimal settleMoney;

	private final String fttLevelText;

	public FttProfitVO(FttProfit fttProfit) {
		BeanUtils.copyProperties(fttProfit, this);
		this.settleMoney = fttProfit.getPerUserMoney().multiply( new BigDecimal(fttProfit.getUserCount().toString()) );
		this.fttLevelText = fttProfit.getFttLevel().text;
	}

	public BigDecimal getSettleMoney() {
		return settleMoney;
	}

	public String getFttLevelText() {
		return fttLevelText;
	}

}
